// ==========静态数据===========

export default {
    // 层级静态数据，code根据后台值而定，主要用于控制页面显示
    level: {
        XX: {
            label: '学校',
            code: 'XT_WH_XX'
        },
        ZY: {
            label: '专业',
            code: 'XT_WH_ZY'
        },
        KC: {
            label: '课程',
            code: 'XT_WH_KC'
        },
        JS: {
            label: '教师',
            code: 'XT_WH_JS'
        },
        XS: {
            label: '学生',
            code: 'XT_WH_XS'
        }
    },
    // 层级静态数据，code根据后台值而定，主要用于控制页面显示 整改报告
    card: {
        WH: {
            label: '线下报告维护',
            code: 'XXBG_WH'
        }
    },
    // 算法类型
    algorithmType: [{
        text: 'SQL',
        value: 0
    }, {
        text: '存储过程',
        value: 1
    }],
    // 文件类型
    fileType: [{
        text: 'doc',
        value: 'doc'
    }, {
        text: 'excel',
        value: 'excel'
    }, {
        text: 'pdf',
        value: 'pdf'
    }],
    // 日期快捷选项
    pickerOptions: {
        shortcuts: [{
            text: '最近一周',
            onClick (picker) {
                const end = new Date();
                const start = new Date();
                start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
                picker.$emit('pick', [start, end]);
            }
        }, {
            text: '最近一个月',
            onClick (picker) {
                const end = new Date();
                const start = new Date();
                start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
                picker.$emit('pick', [start, end]);
            }
        }, {
            text: '最近三个月',
            onClick (picker) {
                const end = new Date();
                const start = new Date();
                start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
                picker.$emit('pick', [start, end]);
            }
        }]
    },
    pickerOptionsToday: {
        disabledDate (time) {
            return time.getTime() > Date.now() - 8.64e6; // 如果没有后面的-8.64e6就是不可以选择今天的
        }
    },
    // 所属年度
    yearArr: () => {
        const date = new Date();
        const year = date.getFullYear();
        const temp = [];
        for (let i = 0; i < 6; i++) {
            temp.push(year - i)
        }
        return temp
    },
    // 质控点类别
    pointType: 'XT_ZKDLX',
    // 质控点值类型
    pointValueType: 'XT_ZKDZLX',
    // 预警条件
    warningFactor: 'XT_ZKDYJTJ',
    // 质控点类别
    pointCategory: 'XT_ZKDLB',
    // 五横
    xtWH: 'XT_WH',
    // 五纵
    xtWZ: 'XT_WZ',
    // 质控点值预期
    pointZYQ: 'XT_ZKDZYQ',
    // 文件类别
    fileCategory: 'XT_WJLB',
    // 本地菜单
    menuList: [
        {
            id: '0',
            parentId: '',
            name: '首页',
            type: 1,
            resUrl: '/index',
            icon: 'el-icon-location',
            children: []
        },
        {
            id: '1',
            parentId: '',
            name: '指标体系',
            type: 1,
            resUrl: '',
            icon: 'el-icon-location',
            children: [{
                id: '2',
                parentId: '1',
                name: '两链管理',
                type: 1,
                resUrl: '/target/twoChains',
                icon: 'el-icon-location'
            },
            {
                id: '3',
                parentId: '1',
                name: '目标标准管理',
                type: 1,
                resUrl: '',
                icon: 'el-icon-location',
                children: [{
                    id: '4',
                    parentId: '3',
                    name: '学校层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/target/standard/level/XT_WH_XX'
                },
                {
                    id: '5',
                    parentId: '3',
                    name: '专业层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/target/standard/level/XT_WH_ZY'
                },
                {
                    id: '6',
                    parentId: '3',
                    name: '课程层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/target/standard/level/XT_WH_KC'
                },
                {
                    id: '7',
                    parentId: '3',
                    name: '教师层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/target/standard/level/XT_WH_JS'
                },
                {
                    id: '8',
                    parentId: '3',
                    name: '专业层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/target/standard/level/XT_WH_XS'
                }
                ]
            },
            {
                id: '9',
                parentId: '1',
                name: '我的目标标准',
                type: 1,
                resUrl: '',
                icon: 'el-icon-location',
                children: [{
                    id: '10',
                    parentId: '3',
                    name: '学校层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/target/myTarget/level/XT_WH_XX'
                },
                {
                    id: '11',
                    parentId: '3',
                    name: '专业层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/target/myTarget/level/XT_WH_ZY'
                },
                {
                    id: '12',
                    parentId: '3',
                    name: '课程层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/target/myTarget/level/XT_WH_KC'
                },
                {
                    id: '13',
                    parentId: '3',
                    name: '教师层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/target/myTarget/level/XT_WH_JS'
                },
                {
                    id: '14',
                    parentId: '3',
                    name: '专业层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/target/myTarget/level/XT_WH_XS'
                }
                ]
            },
            {
                id: '15',
                parentId: '1',
                name: '目标标准审核',
                type: 1,
                resUrl: '',
                icon: 'el-icon-location',
                children: [{
                    id: '16',
                    parentId: '3',
                    name: '学校层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/target/check/level/XT_WH_XX'
                },
                {
                    id: '17',
                    parentId: '3',
                    name: '专业层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/target/check/level/XT_WH_ZY'
                },
                {
                    id: '18',
                    parentId: '3',
                    name: '课程层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/target/check/level/XT_WH_KC'
                },
                {
                    id: '19',
                    parentId: '3',
                    name: '教师层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/target/check/level/XT_WH_JS'
                },
                {
                    id: '20',
                    parentId: '3',
                    name: '专业层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/target/check/level/XT_WH_XS'
                }
                ]
            }
            ]
        },
        {
            id: '21',
            parentId: '',
            name: '诊断改进',
            type: 1,
            resUrl: '',
            icon: 'el-icon-location',
            children: [{
                id: '22',
                parentId: '1',
                name: '诊改监控',
                type: 1,
                resUrl: '',
                icon: 'el-icon-location',
                children: [{
                    id: '23',
                    parentId: '3',
                    name: '学校层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/improve/monitor/level/XT_WH_XX'
                },
                {
                    id: '24',
                    parentId: '3',
                    name: '专业层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/improve/monitor/level/XT_WH_ZY'
                },
                {
                    id: '25',
                    parentId: '3',
                    name: '课程层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/improve/monitor/level/XT_WH_KC'
                },
                {
                    id: '26',
                    parentId: '3',
                    name: '教师层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/improve/monitor/level/XT_WH_JS'
                },
                {
                    id: '27',
                    parentId: '3',
                    name: '专业层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/improve/monitor/level/XT_WH_XS'
                }
                ]
            },
            {
                id: '28',
                parentId: '1',
                name: '诊改分析',
                type: 1,
                resUrl: '/improve/analysis/level/XT_WH_XX',
                icon: 'el-icon-location',
                children: [{
                    id: '29',
                    parentId: '3',
                    name: '学校层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/improve/analysis/level/XT_WH_XX'
                },
                {
                    id: '30',
                    parentId: '3',
                    name: '专业层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/improve/analysis/level/XT_WH_ZY'
                },
                {
                    id: '31',
                    parentId: '3',
                    name: '课程层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/improve/analysis/level/XT_WH_KC'
                },
                {
                    id: '32',
                    parentId: '3',
                    name: '教师层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/improve/analysis/level/XT_WH_JS'
                },
                {
                    id: '33',
                    parentId: '3',
                    name: '专业层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/improve/analysis/level/XT_WH_XS'
                }
                ]
            },
            {
                id: '34',
                parentId: '1',
                name: '我的诊改',
                type: 1,
                resUrl: '',
                icon: 'el-icon-location',
                children: [{
                    id: '35',
                    parentId: '3',
                    name: '学校层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/improve/my/level/XT_WH_XX'
                },
                {
                    id: '36',
                    parentId: '3',
                    name: '专业层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/improve/my/level/XT_WH_ZY'
                },
                {
                    id: '37',
                    parentId: '3',
                    name: '课程层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/improve/my/level/XT_WH_KC'
                },
                {
                    id: '38',
                    parentId: '3',
                    name: '教师层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/improve/my/level/XT_WH_JS'
                },
                {
                    id: '39',
                    parentId: '3',
                    name: '专业层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/improve/my/level/XT_WH_XS'
                }
                ]
            }
            ]
        },
        {
            id: '40',
            parentId: '',
            name: '诊断报告',
            type: 1,
            resUrl: '',
            icon: 'el-icon-location',
            children: [{
                id: '41',
                parentId: '1',
                name: '报告管理',
                type: 1,
                resUrl: '',
                icon: 'el-icon-location',
                children: [{
                    id: '42',
                    parentId: '3',
                    name: '学校层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/report/reportManage/card/XT_WH_XX'
                },
                {
                    id: '43',
                    parentId: '3',
                    name: '专业层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/report/reportManage/card/XT_WH_ZY'
                },
                {
                    id: '44',
                    parentId: '3',
                    name: '课程层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/report/reportManage/card/XT_WH_KC'
                },
                {
                    id: '45',
                    parentId: '3',
                    name: '教师层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/report/reportManage/card/XT_WH_JS'
                },
                {
                    id: '46',
                    parentId: '3',
                    name: '专业层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/report/reportManage/card/XT_WH_XS'
                }
                ]
            },
            {
                id: '47',
                parentId: '1',
                name: '我的报告',
                type: 1,
                resUrl: '',
                icon: 'el-icon-location',
                children: [{
                    id: '48',
                    parentId: '3',
                    name: '学校层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/report/myReport/card/XT_WH_XX'
                },
                {
                    id: '49',
                    parentId: '3',
                    name: '专业层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/report/myReport/card/XT_WH_ZY'
                },
                {
                    id: '50',
                    parentId: '3',
                    name: '课程层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/report/myReport/card/XT_WH_KC'
                },
                {
                    id: '51',
                    parentId: '3',
                    name: '教师层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/report/myReport/card/XT_WH_JS'
                },
                {
                    id: '52',
                    parentId: '3',
                    name: '专业层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/report/myReport/card/XT_WH_XS'
                }
                ]
            },
            {
                id: '53',
                parentId: '1',
                name: '报告审核',
                type: 1,
                resUrl: '',
                icon: 'el-icon-location',
                children: [{
                    id: '54',
                    parentId: '3',
                    name: '学校层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/report/reportCheck/card/XT_WH_XX'
                },
                {
                    id: '55',
                    parentId: '3',
                    name: '专业层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/report/reportCheck/card/XT_WH_ZY'
                },
                {
                    id: '56',
                    parentId: '3',
                    name: '课程层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/report/reportCheck/card/XT_WH_KC'
                },
                {
                    id: '57',
                    parentId: '3',
                    name: '教师层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/report/reportCheck/card/XT_WH_JS'
                },
                {
                    id: '58',
                    parentId: '3',
                    name: '专业层',
                    type: 1,
                    icon: 'el-icon-location',
                    resUrl: '/report/reportCheck/card/XT_WH_XS'
                }
                ]
            }
            ]
        },
        {
            id: '59',
            parentId: '',
            name: '诊改画像',
            type: 1,
            resUrl: '',
            icon: 'el-icon-location',
            children: [{
                id: '60',
                parentId: '3',
                name: '学校',
                type: 1,
                icon: 'el-icon-location',
                resUrl: ''
            },
            {
                id: '61',
                parentId: '3',
                name: '院系',
                type: 1,
                icon: 'el-icon-location',
                resUrl: ''
            },
            {
                id: '62',
                parentId: '3',
                name: '专业',
                type: 1,
                icon: 'el-icon-location',
                resUrl: ''
            },
            {
                id: '63',
                parentId: '3',
                name: '课程',
                type: 1,
                icon: 'el-icon-location',
                resUrl: ''
            },
            {
                id: '64',
                parentId: '3',
                name: '教师',
                type: 1,
                icon: 'el-icon-location',
                resUrl: ''
            },
            {
                id: '65',
                parentId: '3',
                name: '学生',
                type: 1,
                icon: 'el-icon-location',
                resUrl: ''
            }
            ]
        },
        {
            id: '66',
            parentId: '',
            name: '系统管理',
            type: 1,
            resUrl: '',
            icon: 'el-icon-location',
            children: [{
                id: '67',
                parentId: '1',
                name: '用户管理',
                type: 1,
                resUrl: '/system/users',
                icon: 'el-icon-location'
            },
            {
                id: '68',
                parentId: '1',
                name: '角色管理',
                type: 1,
                resUrl: '/system/role',
                icon: 'el-icon-location'
            },
            {
                id: '69',
                parentId: '1',
                name: '权限管理',
                type: 1,
                resUrl: '/system/permission',
                icon: 'el-icon-location'
            },
            {
                id: '70',
                parentId: '1',
                name: '组织管理',
                type: 1,
                resUrl: '/system/organize',
                icon: 'el-icon-location'
            },
            {
                id: '71',
                parentId: '1',
                name: '参数管理',
                type: 1,
                resUrl: '/system/params',
                icon: 'el-icon-location'
            },
            {
                id: '72',
                parentId: '1',
                name: '算法管理',
                type: 1,
                resUrl: '/system/algorithm',
                icon: 'el-icon-location'
            },
            {
                id: '73',
                parentId: '1',
                name: '日志管理',
                type: 1,
                resUrl: '/system/logs',
                icon: 'el-icon-location'
            }
            ]
        }
    ],
    yesOrNo: [{
        text: '是',
        value: 1
    },
    {
        text: '否',
        value: 2
    }
    ],
    isOptional: [{
        text: '未选',
        value: null
    }, {
        text: '未选',
        value: 0
    }, {
        text: '必选',
        value: 1
    },
    {
        text: '可选',
        value: 2
    }
    ],
    'XT_WH_ZY&&2': {
        id: 'f57ae5d201793b3db609',
        name: '专业层&&学校',
        hasCode: false
    },
    'XT_WH_ZY&&3': {
        id: '0d7e5c9c41793c075331',
        name: '专业层&&教学单位',
        hasCode: true
    },
    'XT_WH_ZY&&4': {
        id: '',
        name: '专业层&&专业',
        hasCode: false
    },
    'XT_WH_KC&&5': {
        id: '1bbd455451794680f592',
        name: '课程层&&学校',
        hasCode: false
    },
    'XT_WH_KC&&6': {
        id: ' f4f9ff44c179478cb9fe ',
        name: '课程层&&教学单位',
        hasCode: true
    },
    'XT_WH_KC&&7': {
        id: '',
        name: '课程层&&课程',
        hasCode: false
    },
    'XT_WH_JS&&8': {
        id: 'cc9a95eb11794786f337',
        name: '教师层&&学校',
        hasCode: false
    },
    'XT_WH_JS&&9': {
        id: 'd74c0379f179501a6c99',
        name: '教师层&&教学单位',
        hasCode: true
    },
    'XT_WH_JS&&10': {
        id: '860af72231794fdbf9ec',
        name: '教师层&&专业',
        hasCode: true
    },
    'XT_WH_JS&&18': {
        id: '',
        name: '教师层&&教师',
        hasCode: false
    },
    'XT_WH_XS&&15': {
        id: 'd8661d9b117947898e49',
        name: '学生层&&学校',
        hasCode: false
    },
    'XT_WH_XS&&16': {
        id: '7d541ee7e179501afeca',
        name: '学生层&&教学单位',
        hasCode: true
    },
    'XT_WH_XS&&17': {
        id: '',
        name: '学生层&&学生',
        hasCode: false
    },
    'XT_WH_XS&&19': {
        id: '9b50848681794fdc6b8b',
        name: '学生层&&班级',
        hasCode: true
    }
}
